public class Student {
    private String name;
    private float age;
    private int id;

    public Student() {

    }

    public Student(String name, float age, int id) {
        this.name = name;
        this.age = age;
        this.id = id;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {

        this.name = name;
    }

    public float getAge() {

        return age;
    }

    public void setAge(float age) {

        this.age = age;
    }

    public int getId() {

        return id;
    }

    public void setId(int id) {

        this.id = id;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", id='" + id + '\'' +
                '}';
    }

//    public static void main(String[] args) {
//        Student xuesheng1 = new Student("王老五", 18, 110);
//
//        Student xuesheng2 = new Student("赵四", 21, 119);
//        System.out.println(xuesheng1);
//        System.out.println(xuesheng2);
//    }
    }
